﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucItemDetail.ascx.cs"
    Inherits="Client_UserControl_ucItemDetail" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:FormView ID="frmViewDetail" runat="server">
    <ItemTemplate>
        <table cellpadding="3" cellspacing="3" style="background-color:#eae6f1" width="100%">
            <tr>
                <td style="width: 400px; height: 302px; text-align: center;" valign="top">
                    <asp:Label ID="lblItemName" runat="server" Text='<%# Eval("ItemName")%>' CssClass="btTitle"></asp:Label>
                    <br />
                    <asp:Image ID="imgItem" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/images/items/" + Eval("ImageURL") + "&width=200&heigh=200&dd=true" %>'
                        ToolTip='<%# Eval("ItemName") %>' />
                    <br />
                    <div style="left">
                        * Picture is for illustration purposes only.</div>
                    <br />
                    <%--<asp:HyperLink ID="lnkViewItemImages" runat="server" NavigateUrl='<%#"~/ViewItemImages.aspx?keepThis=true&TB_iframe=true&width=560&height=510&ID=" + Eval("ItemID") %>' CssClass="thickbox" ToolTip="Item Images">View Item Images</asp:HyperLink>--%>
                    <asp:HyperLink ID="lnkViewItemImages" runat="server" NavigateUrl='<%#"~/ViewItemImages.aspx?ID=" + Eval("ItemID") %>'>View Item Images</asp:HyperLink>
                    <br />
                </td>
                <td valign="top">
                    <table cellpadding="3" cellspacing="3" width="100%">
                        <tr>
                            <td>
                                <asp:Label ID="lblPrice1" runat="server" Text='<%# Eval("BaseSellingPrice", "{0:c}")%>'
                                    CssClass="clsTotalPriceCart"></asp:Label>
                                (Inc. GST)
                                <br />
                                Item Number: <strong>
                                    <asp:Label ID="lblCode" runat="server" Text='<%# Eval("ItemNumber") %>'></asp:Label></strong>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 20px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>Estimation of Delivery Fee:</strong>
                                <br />
                                <asp:TextBox ID="txtPostCode" runat="server" CssClass="unwatermarked"></asp:TextBox>
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtPostCode"
                                    WatermarkText="Postcode" WatermarkCssClass="watermarked">
                                </asp:TextBoxWatermarkExtender>
                                <br />
                                This amount is based on one item.
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 20px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%--<asp:UpdatePanel ID="updatePnlQuantity" runat="server">
                            <ContentTemplate>--%>
                                <%--<asp:HyperLink ID="lnkItemDetails" runat="server" NavigateUrl='<%# "~/Item.aspx?id=" + Eval("ItemID") %>'>--%>
                                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/icoShoppingCartDetails.png"
                                    OnClick="ImageButton1_Click" /><br />
                                <asp:Label ID="lblInfoAddCart" runat="server" Text="" ForeColor="Red"></asp:Label>
                                <%--<div class="productItemStyle" price='<%# Eval("BaseSellingPrice") %>' matchedPrice='0' code='<%# Eval("ItemID") %>'>
                                    <asp:Image ID="imgDragMe" runat="server" ImageUrl="~/images/btnDragme.png" ToolTip="Drag to Shopping Cart"
                                                                        Width="101" Height="27"  />
                                    
                                </div>  --%>
                                <%--</asp:HyperLink>--%>
                                <%--</ContentTemplate>
                            <Triggers>                                
                                <asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" />
                            </Triggers>
                        </asp:UpdatePanel>  --%>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 20px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>We accept:</strong><br />
                                <asp:Image ID="Image1" runat="server" ImageUrl="~/images/imgPaymentMethod.png" />
                                <br />
                                Your payment details are protected and encrypted by 256-bit SSL technology. Your
                                privacy and security is guaranteed.
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <h3 style="color: #2088d8;">
                        Product Specifications</h3>
                    <%--<asp:Label ID="lblDescription" runat="server" Text='<%= if(Eval("ItemDescription").ToString()!=null )Server.HtmlDecode(Eval("ItemDescription").ToString()) %>'></asp:Label>--%>
                </td>
            </tr>
            <tr>
                <td>
                    <%# Server.HtmlDecode(Eval("ItemDescription").ToString())%>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:FormView>
